@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap");

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ma Shan Zheng", "SimSun", serif;
  overflow-x: hidden;
  overflow-y: auto; /* 允许垂直滚动 */
  min-height: 100vh;
  padding: 0; /* 移除原有padding */
}

/* 背景视频（固定不动） */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 覆盖整个屏幕，可能裁剪 */
}

/* 中间纯白内容容器（占满屏幕宽度） */
.content-container {
  background-color: rgba(255, 255, 255, 0.9); /* 85%透明度的白色 */
  min-height: 100vh;
  width: 70%;
  margin: 0 auto;
}

/* 容器居中 */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px; /* 添加内边距 */
  border-radius: 8px; /* 添加圆角 */
}

/* 标题行容器：左侧返回按钮 + 中间标题（同一行不重叠） */
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px; /* 调整：增大与下方内容的间距（原30px） */
  position: relative;
}

/* 修改返回按钮位置 */
.back-btn {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}

.back-btn:hover {
  transform: scale(1.05); /* 悬停时同时缩放和保持垂直居中 */
}

.back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 标题样式：居中显示，不被按钮遮挡 */
.slogan .page-title {
  text-align: center;
  font-size: 3rem;
  color: #333;
  letter-spacing: 2px;
  margin: 10px;
  /* 标题自身不设置定位，自然居中 */
}

/* 输入框 + 按钮区域 */
.input-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 30px;
  justify-content: center; /* 输入区域整体居中 */
}

.input-section input {
  flex: 1;
  max-width: 300px; /* 限制输入框最大宽度，避免过宽 */
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1.2rem;
  font-family: "Ma Shan Zheng", "SimSun", serif;
  text-align: center;
}

.input-section button {
  padding: 15px 25px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  font-family: "Ma Shan Zheng", "SimSun", serif;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-section button:hover {
  background-color: #43a047;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 图片容器样式 */
.image-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .title-container {
    padding-left: 50px; /* 小屏幕减少左侧 padding */
    margin-bottom: 30px;
  }

  .back-btn {
    width: 40px;
    height: 40px;
    left: 10px;
    top: 10px;
  }

  .slogan .page-title {
    font-size: 2.5rem;
  }

  .input-section {
    flex-direction: column;
    gap: 10px;
  }

  .input-section input,
  .input-section button {
    width: 100%;
    font-size: 1rem;
  }

  .image-container {
    max-width: 300px;
  }
}
